<extend name="public/base" />
<block name="wrapper">
	<form  action="{:U('User/update')}" method="post" enctype="multipart/form-data">
			<table align="center" width="500" height="300" cellpadding="5" cellspacing="5">
				<tr>
					<th>用户名</th>
					<td>
						<input type="text" name="username" value="{$data['username']}" >
						<input type="hidden" name="id" value="{$data['id']}">
					</td>
				</tr>
				<tr>
					<th>昵称</th>
					<td><input type="text" name="userpwd" value="{$data['nickname']}"></td>
				</tr>
				<tr>
					<th>读书金币</th>
					<td><input type="number" name="gold" value="{$data['gold']}"></td>
				</tr>
				<tr>
					<th>邮箱</th>
					<td><input type="email" name="email" value="{$data['email']}"></td>
				</tr>
				<tr>
					<th>密保手机</th>
					<td><input type="number" name="phone" value="{$data['phone']}"></td>
				</tr>
				<tr>
					<th>上传头像</th>
					<td>
							<input type="file" name="userpic">
							<img width="50" height="50" src="__PUBLIC__/{$data['userpic']}" alt="">
					</td>
				</tr>
				<tr align="center">
					<td colspan="2"><input type="submit" value="修改"></td>
				</tr>
			</table>
	</form>
</block>